package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * api管理对象 api_table
 * 
 * @author ruoyi
 * @date 2024-09-23
 */
public class ApiTable extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 接口名称 */
    @Excel(name = "接口名称")
    private String name;

    /** 接口描述 */
    @Excel(name = "接口描述")
    private String description;

    /** url */
    @Excel(name = "url")
    private String url;

    /** 方法 */
    @Excel(name = "方法")
    private String method;

    /** 参数 */
    @Excel(name = "参数")
    private String apiParams;

    /** 参数类别 */
    @Excel(name = "参数类别")
    private String paramsType;

    /** 返回参数 */
    @Excel(name = "返回参数")
    private String responseStructure;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }
    public void setUrl(String url) 
    {
        this.url = url;
    }

    public String getUrl() 
    {
        return url;
    }
    public void setMethod(String method) 
    {
        this.method = method;
    }

    public String getMethod() 
    {
        return method;
    }
    public void setApiParams(String apiParams) 
    {
        this.apiParams = apiParams;
    }

    public String getApiParams() 
    {
        return apiParams;
    }
    public void setParamsType(String paramsType) 
    {
        this.paramsType = paramsType;
    }

    public String getParamsType() 
    {
        return paramsType;
    }
    public void setResponseStructure(String responseStructure) 
    {
        this.responseStructure = responseStructure;
    }

    public String getResponseStructure() 
    {
        return responseStructure;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("description", getDescription())
            .append("url", getUrl())
            .append("method", getMethod())
            .append("apiParams", getApiParams())
            .append("paramsType", getParamsType())
            .append("responseStructure", getResponseStructure())
            .toString();
    }
}
